import axios from '../utils/request'
export const userLogin = (data) => {
  return axios({
    method: 'post',
    url: '/user/login/login',
    data
  })
}
// 修改密码
export const changePassword = (data) => {
  return axios({
    method: 'post',
    url: '/user/login/modifyPassword',
    data
  })
}
// 获取订阅国家
export const addressUri = (data) => {
  return axios({
    method: 'post',
    url: '/user/hot_spot/addressUri',
    data
  })
}
// 更新订阅国家信息
export const ModifyWikiUriIds = (data) => {
  return axios({
    method: 'post',
    url: '/user/hot_spot/modifyWikiUriIds',
    data
  })
}
// 获取我的订阅列表
export const GetSubscribeCountry = (data) => {
  return axios({
    method: 'get',
    url: '/user/hot_spot/getSubscribeCountry',
    data
  })
}
// 首页的列表数据
export const GetHotSpotList = (data) => {
  return axios({
    method: 'post',
    url: '/user/hot_spot/getHotSpotList',
    data
  })
}
// 概念搜查
export const Concepts = (data) => {
  return axios({
    method: 'post',
    url: '/user/data_search/concepts',
    data
  })
}
// 概念搜查
export const GetCategories = (data) => {
  return axios({
    method: 'post',
    url: '/user/data_search/getCategories',
    data
  })
}
// 地点搜查
export const GetLocations = (data) => {
  return axios({
    method: 'post',
    url: '/user/data_search/getLocations',
    data
  })
}
// 数据查搜列表
export const GetArticleList = (data) => {
  return axios({
    method: 'post',
    url: '/user/data_search/getArticleList',
    data
  })
}
// 创建话题
export const CreateTopics = (data) => {
  return axios({
    method: 'post',
    url: '/user/data_search/createTopics',
    data
  })
}
// 创建话题列表
export const MyTopics = (data) => {
  return axios({
    method: 'get',
    url: '/user/data_search/topicsList',
    data
  })
}
// 创建话题列表删除
export const TopicsList = (data) => {
  return axios({
    method: 'post',
    url: '/user/data_search/deleteTopics',
    data
  })
}
// 采集文章
export const CollectData = (data) => {
  return axios({
    method: 'post',
    url: '/user/data_search/collectData',
    data
  })
}
//翻译接口
export const Translate = (data) => {
  return axios({
    method: 'post',
    url: '/user/data_search/translate',
    data
  })
}
//我的采集的话题列表
export const CyTopics = (data) => {
  return axios({
    method: 'post',
    url: '/user/my_topics/myTopics',
    data
  })
}
//我的采集的列表
export const ArticleListCai = (data) => {
  return axios({
    method: 'post',
    url: '/user/my_topics/articleList',
    data
  })
}
//我的采集的列表
export const ArticleInfo = (data) => {
  return axios({
    method: 'post',
    url: '/user/my_topics/articleInfo',
    data
  })
}
//我的采集的列表
export const DeleteArticle = (data) => {
  return axios({
    method: 'post',
    url: '/user/my_topics/deleteArticle',
    data
  })
}
//内容流量统计
export const ChatTraffic = (data) => {
  return axios({
    method: 'post',
    url: '/user/base/chatTraffic',
    data
  })
}
//获取流量情况
export const GetTraffic = (data) => {
  return axios({
    method: 'get',
    url: '/user/base/getTraffic',
    data
  })
}
//获取话题推荐
export const Chat = (data) => {
  return axios({
    method: 'get',
    url: '/plant/api/chat_topics/chat',
    // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
    data
  })
}
//热点新闻详情
export const GetHotSpotInfo = (data) => {
  return axios({
    method: 'post',
    url: '/user/hot_spot/getHotSpotInfo',
    // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
    data
  })
}